<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
	div{
		height: 100%px;
		width: 600px;
		margin: 0 auto;
		border: 1px #ccc solid;
		/*background-color: blue;*/
		text-align: center;
	}

	td{
		width: 200px;
	}

	</style>
</head>
<body>
	
	<div> 
		<h4>电脑网盘</h4>
		<form action="./add.php" method="post"enctype='multipart/form-data'>
			<input type="file" name="file" value="选择图片" />
			<input type="submit" value="上传" />
		</form>
		<table>
			<tr>
				<td>图片</td>
				<td>图片名</td>
				<td>time</td>
				<td>操作</td>
				
			</tr>
		
				
			</tr> 
			<?php foreach ($path as $v) {?>
			<tr>
				<td ><img width="20" height="20" src="<?php echo $v ?>" alt="" /></td>
				<td ><?php echo basename ($v) ?></td>
				<td ><?php echo filemtime($v)?></td>
				<td>

				    <a href="./down.php?url=<?php echo iconv('GB2312', 'UTF-8', $v); ?>">下载</a>
				    <a href="./del.php?url=<?php echo iconv('GB2312','UTF-8',$v);?>">删除</a>
				</td>
				
			</tr>
			<?php } ?>
		</table>

	</div>
	
</body>
</html>